function isDev() {
  return (
    window.location.host.indexOf('127.0.0.1') > -1 ||
    window.location.host.indexOf('localhost') > -1
  );
}

export function getDomain() {
  if (isDev()) {
    return 'https://ceshiweb.picaime.com/syapi/' //开发环境的接口ip
  }
  return `${window.location.protocol}//${window.location.host}`;
}